package com.dabbo.starship.block;

import java.rmi.RemoteException;

import com.dabbo.starship.cell.CellConsole;
import com.dabbo.starship.cell.CellDefault;
import com.dabbo.starship.interfaces.Block;
import com.dabbo.starship.interfaces.Container;

public class BlockCorridorESW extends BlockDefault {

	// XXXXXXXXX
	// XXXXXXXXX
	// XXXXXXXXX
	// XXX C XXX
	// X       X
	// XXX   XXX
	// XXXX XXXX
	// XXXX XXXX
	// XXXXXXXXX	

	private static final long serialVersionUID = -4062647269619914648L;

	public BlockCorridorESW(Container parent) throws RemoteException {
		super(parent);
		this.blockType = Block.BLOCK_DEFAULT;
		this.description = "Corridor";
		for (int x = 1; x < 9; x++) {
			for (int y = 1; y < 9; y++) {
				if ((y == 4) || (x == 4 && y > 4) || (x >= 3 && x <= 5 && y >= 3 && y <= 5)) {
					//this.grid[y][x] = new CellFloor(this);
				} else {
					this.grid[y][x] = new CellDefault(this);
				}
				
			}
		}
		this.grid[3][4] = new CellConsole(this);
	}
	
}
